import nltk
from rai.sem.FOL import *


#sentence = "Who chases a girl"
#sentence = "Who is happy"
#sentence = "Who is happy and who is drunk"
#sentence = "Who is John"
#sentence = "Who is not in the kitchen"
#sentence = "every boy is in the kitchen"
#sentence = "Who chases a dog"
sentence = "Who loves the Bob"
#sentence = "Who performs the musical"
evaluateSentence(sentence)

#sentences = ["Who is happy","Who chases a girl"]
#evaluateSentences(sentences)

#evaluateSentence(sentence)

#print "dom4:"+str(dom4)
#print "m4:"+str(m4)
#print "g:"+str(g)
def test_tagged_words():
    tagged_word1 = ('loopt', 'VP', 'VP')
    tagged_word2 = ('huis', 'NN', 'NN')
    tagged_word3 = ('boek', 'AT', 'AT')
    print isVerb(tagged_word1)
    print isNoun(tagged_word1)
    
    print isVerb(tagged_word2)
    print isNoun(tagged_word2)
    
    print "**********"
    print getVerb([tagged_word1, tagged_word2, tagged_word3])
    print getNouns([tagged_word1, tagged_word2, tagged_word3])
